package cn.yllr.tomgxianghui.controller;

import cn.yllr.tomgxianghui.entity.Raw;
import cn.yllr.tomgxianghui.service.RawService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Raw)表控制层
 *
 * @author makejava
 * @since 2021-12-21 20:06:48
 */
@RestController
@RequestMapping("raw")
public class RawController {
    /**
     * 服务对象
     */
    @Resource
    private RawService rawService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Raw selectOne(Integer id) {
        return this.rawService.queryById(id);
    }

}